<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no">
		<meta name="mobileOptimized" content="width">
		<meta name="handheldFriendly" content="true">
		<meta name="format-detection" content="telephone=no">
		<meta name="apple-touch-fullscreen" content="yes">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="Cache-Control" content="max-age=0">
		<meta http-equiv="expires" content="0">
	<title>绑定银行卡-美的地产全民经纪人</title>
	<link rel="stylesheet" type="text/css" href="css/style.css" >
	<script type="text/javascript">
	
	function myFunction(){
		var bankcard = document.getElementById("bankcard").value
		var banktype = document.getElementById("banktype").value

		if (checkBankcard(bankcard)){
			if(checkBanktype(banktype)){}
		}
	}
	function checkBankcard(bankcard){
		var re = /^\d{16}$|\d{19}$/
		if (re.test(bankcard)){
			return true;
		}
		else{
			alert("请输入正确的银行卡号");
			return false;
		}
	}
	function checkBanktype(banktype){
		var re = /^$/
		if (re.test(banktype)){
			alert("请输入正确的银行名称");
			return false;
		}
		else{
			return true;
		}
	}
	</script>
</head>
<body>
<section class="main animated fadeInDown">
			<div class="main-box">

				<p class="rb-row"><input type="text" class="input" id="bankAccount" value="吴永裕" readonly="" style="background:#ccc"></p>
                <p class="rb-row"><input type="tel" placeholder="请输入您的银行卡号" class="input" id="bankcard" value=""></p>
				<p class="rb-row"><input type="text" placeholder="请输入您的银行名称" class="input" id="banktype" value=""></p>
				<div class="recommend-tips">
					<h6>提示</h6>
					<p>为了您能快速结佣请提供详细的开户行信息,如招商银行福州华林支行。</p>
				</div>
				<p class="rb-submit"><input type="button" value="保存" onclick="myFunction()" class="btn" id="J_saveCard"></p>
			</div>
		</section>

	<footer class="foot"><a>© 美的地产</a></footer>	
</body>
</html>